/*
 * ConstantesGenerales.java
 *
 * Created on August 13, 2007, 6:23 PM
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package com.computec.encolador.constantes;

import com.computec.encolador.source.EncoladorSource;
import java.util.Locale;



/**
 *
 * @author FSanchez
 */
public class ConstantesGenerales {
    protected static ConstantesGenerales instance;
    
    //aocampo
    public static Locale LOCALE_DEFAULT = Locale.getDefault();
    
    public static String FACTORYDAO_CLASSNAME;
    public static String SCHEMA;
    public static String ENDPOINT_REFERENCE;
    public static String ACTION;
    public static String NAMESPACE;
    public static String FILE_ORIGEN;
    public static String OP_FOLDER;
    
    
    
    /** Creates a new instance of ConstantesGenerales */
    public ConstantesGenerales() {
	EncoladorSource encoladorSource=EncoladorSource.getInstance();
	
	// aocampo
	this.LOCALE_DEFAULT.setDefault(new Locale("es", "CO"));
	
	this.FACTORYDAO_CLASSNAME       = encoladorSource.getEncoladorSetupKey("DaoFactoryClassName");
	this.SCHEMA                     = encoladorSource.getEncoladorSetupKey("schema");
	this.ENDPOINT_REFERENCE		= encoladorSource.getEncoladorSetupKey("EndpointReference");
	this.ACTION			= encoladorSource.getEncoladorSetupKey("action");
	this.NAMESPACE			= encoladorSource.getEncoladorSetupKey("Namespace");
	this.OP_FOLDER			= encoladorSource.getEncoladorSetupKey("OrdenProcesoFolder");
    }
    
    public static ConstantesGenerales getInstance() {
	if (instance == null) {
	    instance = new ConstantesGenerales();
	}
	return instance;
    }
}
